<#include "/decorators/header.ftl"><br/>
		<div id="wrapper">
	<p id="lead">
		Ask to is a social network of knowledge. We focus on the content, instead of the users.
		
	</p>
	<div id="search">
		<form action="#" onSubmit="goto();return false;">
		<span>What are you searching for?</span> <input id="searchBox" type="text" size="15"/><input id="searchImg" type="image" src="/images/search.png" onClick="goto()" /><input type="submit" class="input-hidden"/>
		</form>
	</div>
	<h3>Hope you enjoy this site</h3>
	There are actually ${totalPages} pages in our database
	<br/>
	
	<script type="text/javascript">
		var goto = function(){
			window.location = "/"+document.getElementById("searchBox").value+"/home";
			return false;
		}
	</script>
	</div>
		<div id="userBox"
		<#if userLoggedin>
		 title="You are logged with your:">
		<br/> <img src="/images/google-accounts.png" border=0/> <a href="${logoutUrl}">Logout</a>
		logout
		<#else>
		 title="You may login with your:">
		 <center>
		<br/> <a href="${loginUrl}"><img src="/images/google-accounts.png" border=0/></a>
		</center> 
		</#if>
		</div>